#include "server.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>

int create_server_socket() {
    int server_sock = socket(AF_INET, SOCK_STREAM, 0);
    if (server_sock == -1) {
        perror("创建socket失败");
        exit(1);
    }
    return server_sock;
}